﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Web.Models.User
{
    public class UserData
    {
        [Required]
        public string Username { get; set; }

        [Required( ErrorMessage = "La mot de passe requis n'est pas bonne.")]
        [UIHint("Password")]
        public string Password { get; set; }
        
        [UIHint("Password")]
        [Compare("Password", ErrorMessage = "La confirmation n'est pas bonne.")]
        public string ConfirmPassword { get; set; }
        
        [Required]
        public string Email { get; set; }
        
        [Required]
        public string PasswordQuestion { get; set; }
       
        [Required]
        public string PasswordAnswer { get; set; } 

        public bool IsApproved { get; set; } 

        public object ProviderUserKey { get; set; } 
    }
}